package com.android.qjpmc.data_module;

/*
* 报警记录节点
*
*
*
*
* */
public class EventRecord {
    String RecordTime;
    String RecordName;
    EventRecord m_NextNode = null;
    EventRecord m_PreNode = null;

    DataLocation m_DataLocation = new DataLocation();

    public EventRecord GetNext()
    {
        return m_NextNode;
    }
    public EventRecord GetPre()
    {
        return m_PreNode;
    }
    public void SetNext(EventRecord Record)
    {
        m_NextNode = Record;
    }
    public void SetPre(EventRecord Record)
    {
        m_PreNode = Record;
    }
    public int AppendANode(EventRecord Node)
    {
        EventRecord NextNode = GetNext();
        if (Node == null)
        {
            return 1;
        }
        Node.SetNext(NextNode);
        if (NextNode != null)
        {
            NextNode.SetPre(Node);
        }
        return 0;
    }

}
